package maintain

import (
	"context"
	"gf_blog_admin/internal/service"

	"gf_blog_admin/api/maintain/v1"
)

func (c *ControllerV1) DatabaseRepair(ctx context.Context, req *v1.DatabaseRepairReq) (res *v1.DatabaseRepairRes, err error) {
	res = &v1.DatabaseRepairRes{}
	err = service.Database().Repair(ctx, req.Tables)
	return
}
